%li.highlight[contact]
  = avatar_for(contact, size: "20x20")

  %ul.tools
    = hook(:contact_tools_before, self, contact: contact)

    - if can?(:update, contact)
      %li= link_to_edit(contact)

    - if shown_on_landing_page?
      %li= link_to_discard(contact)

    - if can?(:destroy, contact)
      %li= link_to_delete(contact)

  %div
    = link_to_if can?(:read, contact), contact.full_name(current_user.preference[:contacts_naming]), contact
    %tt
      = brief_account_info(contact)

      - if (lead = contact.lead) and lead.referred_by?
        &ndash;
        == #{t :referred_by_small} #{lead.referred_by}

    = hook(:contact_bottom, self, contact: contact)
